package com.alibaba.nacos.example.spring.cloud.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.nacos.example.spring.cloud.util.Result;
import com.alibaba.nacos.example.spring.cloud.util.SmsUtil;

@Controller
@RequestMapping("/Sms")
public class SmsController {
	/**
	 * Sms/register?phone
	 * @param phone
	 * @return
	 * @throws Exception
	 */
	@ResponseBody
	@GetMapping(value = "/register")
	public Result findSysUserlist(String phone) throws Exception {
		return new Result(200, "成功",SmsUtil.ResetSmsTool(phone));
	}
}
